
#include <sys/cdefs.h>

#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <assert.h>
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif

#ifdef _FORTIFY_SOURCE
#undef strcat
#endif

char *
strcat(char *s, const char *append)
{
	char	*t = s;

	_DIAGASSERT(t != NULL);
	_DIAGASSERT(append != NULL);

	for (; *t; ++t)
		;
	while ((*t++ = *append++) != '\0')
		;
	return (s);
}
